package com.yuanqi.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class testContoller {

    @Value(("${server.port}"))
    String port;

    @RequestMapping("/useradd/{id}")
    public String useradd(@PathVariable("id") Integer id) throws InterruptedException {
//        Thread.sleep(10000);
        return "useradd succeed:"+ id + "/n来自端口：" + port;
    }

}
